package com.ec.vs.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "aes")
@RefreshScope   // Nacos 修改后自动刷新
@Data
public class AesProperties {
    private String key;
}